const area = {
  state: {
    areaTree: '',
    areaList: ''
  },

  mutations: {
    SET_AREA_TREE: (state, areaTree) => {
      state.areaTree = areaTree
    },
    SET_AREA_LIST: (state, areaList) => {
      state.areaList = areaList
    }
  },

  actions: {
    setAreaTree({ commit }, areaTree) {
      commit('SET_AREA_TREE', areaTree)
    },
    setAreaList({ commit }, areaList) {
      commit('SET_AREA_LIST', areaList)
    }
  }
}

export default area
